package com.charger.PromoteOperations.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.charger.chargingStation.domain.Chargingstation;
import com.charger.giftcert.domain.Giftcertificate;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.charger.common.annotation.Excel;
import com.charger.common.core.domain.BaseEntity;

/**
 * 活动管理对象 activity
 * 
 * @author ruoyi
 * @date 2024-11-25
 */

public class Activity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String name;

    /** 活动类型 */
    @Excel(name = "活动类型")
    private String type;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 停止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "停止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 是否关联礼券 (Y/N) */
    @Excel(name = "是否关联礼券 (Y/N)")
    private String giftCertificateRelevancy;

    /** 礼券外键 */
    private Long giftcertificateId;

    /** 逻辑删除 */
    private Long del;




    @TableField(exist = false)
    private Giftcertificate giftcertificate;

    @TableField(exist = false)
    private List<Chargingstation> chargingstations;


    @TableField(exist = false)
    private List<Long> chargerStationId=new ArrayList<>();

    public List<Long> getChargerStationId() {
        return chargerStationId;
    }

    public void setChargerStationId(List<Long> chargerStationId) {
        this.chargerStationId = chargerStationId;
    }

    public List<Chargingstation> getChargingstations() {
        return chargingstations;
    }

    public void setChargingstations(List<Chargingstation> chargingstations) {
        this.chargingstations = chargingstations;
    }


    public Giftcertificate getGiftcertificate() {
        return giftcertificate;
    }

    public void setGiftcertificate(Giftcertificate giftcertificate) {
        this.giftcertificate = giftcertificate;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setGiftCertificateRelevancy(String giftCertificateRelevancy) 
    {
        this.giftCertificateRelevancy = giftCertificateRelevancy;
    }

    public String getGiftCertificateRelevancy() 
    {
        return giftCertificateRelevancy;
    }
    public void setGiftcertificateId(Long giftcertificateId) 
    {
        this.giftcertificateId = giftcertificateId;
    }

    public Long getGiftcertificateId() 
    {
        return giftcertificateId;
    }
    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("giftCertificateRelevancy", getGiftCertificateRelevancy())
            .append("giftcertificateId", getGiftcertificateId())
            .append("del", getDel())
            .toString();
    }
}
